* {
    margin: 0;
    padding: 0;
}

.clearfix:after {
    visibility: hidden;
    clear: both;
    display: block;
    content: ".";
    height: 0
}

.clearfix {
    *zoom: 1
}

.container {
    width: 1200px;
    margin: 0 auto;
}

body {
    background: #f3f5f7;
}

ul {
    list-style: none;
}

a {
    color: #333;
    text-decoration: none;
}

header {
    margin-top: 30px !important; 
    margin-bottom: 30px !important; 
    &>img {
        float: left;
        margin-right: 70px;
    }
    ul {
        float: left;
        li {
            float: left;
            a {
                font-size: 18px;
                padding: 0 12px;
                line-height: 40px;
                display: block;
                margin-right: 28px;
                &:hover {
                    border-bottom: 2px solid #00a4ff;
                }
            }
        }
    }
    .search {
        float: left;
        margin-left: 70px;
        input {
            box-sizing: border-box;
            width: 360px;
            height: 40px;
            padding: 0 8px;
            float: left;
            border: 1px solid #00a4ff;
            outline: none;
        }
        img {
            float: left;
            cursor: pointer;
        }
    }
    .user {
        float: right;
        font-size: 14px;
        color: #666;
        line-height: 42px;
        position: relative;
        img {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
        }
        span {
            margin-left: 35px;
        }
    }
}

.banner {
    background: #1c036c url(../images/banner2.jpg) no-repeat center;
    height: 420px;
    .sub_nav {
        float: left;
        box-sizing: border-box;
        height: 420px;
        width: 190px;
        background: rgba(0,0,0,.3);
        padding: 0 16px;
        li {
            a {
                font-size: 14px;
                display:block;
                line-height: 45px;
                color: white;
                span {
                    float: right;
                }
                &:hover{
                    color: #00b4ff;
                }
            }
        }
    }
    .course {
        float: right;
        width: 230px;
        height: 300px;
        margin-top: 50px;
        background: white;
        .course_hd {
            line-height: 48px;
            text-align: center;
            color: white;
            background: #9bceea;
        }
        .course_bd {
            padding: 10px 15px 0;
            li {
                height: 50px;
                border-bottom: 1px solid #ccc;
                margin-top: 10px;
                h4 {
                    font-size: 14px;
                    color: #4e4e4e;
                }
                div {
                    font-size: 12px;
                    color: #a5a5a5;
                }
            }
        }
        .all {
            display: block;
            height: 38px;
            border: 1px solid #00a4ff;
            margin: 10px 14px;
            font-size: 16px;
            color: #00a4ff;
            text-align: center;
            line-height: 38px;
        }
    }
}

.goods {
    height: 60px;
    // 利用行高可以继承的特性
    line-height: 60px;
    box-shadow: 2px 2px 2px rgba(0,0,0,.3);
    margin-top: 10px;
    background-color: #fff;
    h3 {
        color: #00a4ff;
        margin: 0 34px;
        float: left;
        font-size: 16px;
    }
    .goods-item {
        float: left;
        color: #ccc;
        a {
            margin: 0 16px;
            font-size: 16px;
            &:hover {
                color: #00b4ff;
            }
        }
    }
    p {
        color: #00a4ff;
        margin: 0 34px;
        float: right;
        font-size: 14px;
    }
}

.box {
    margin-top: 15px;
    .box_hd {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 60px;
        h3 {
            font-size: 20px;
            color: #494949;
            font-weight: normal;
        }
        a {
            font-size: 12px;
            color: #a5a5a5;
        }
    }
    .box_bd {
        width: 1215px;
        perspective: 500px;
        li {
            float: left;
            width: 228px;
            background: white;
            box-shadow: 2px 2px 2px rgba(0 0 0 / 30%);
            margin: 0 15px 15px 0;
            padding-bottom: 20px;
            transition: transform .3s;
            position: relative;
            img {
                width: 100%;
            }
            h4 {
                margin: 20px;
                font-size: 14px;
                color: #050505;
                font-weight: 400;
            }
            p {
                margin: 0 20px;
                font-size: 12px;
                color: #999;
                span {
                    color: orange;;
                }
            }
            &:hover {
                transform: translateZ(5px);
                // transform: scale(1.02)
            }
            .hot {
                width: 40px;
                position: absolute;
                top: 0;
                right: -4px;
            }
        }
    }
}

footer {
    background: white;
    .footer {
        display: flex;
        justify-content: space-between;
        height: 385px;
        padding-top: 30px;
        .copyright{
            p {
                font-size: 12px;
                color: #666;
                margin:20px 0 15px 0;
            }
            a {    
                display: block;
                width: 118px;
                height: 34px;
                text-align: center;
                line-height: 34px;
                border: 1px solid #00a4ff;
                color: #00a4ff;
            }
        }
        .links {
            display: flex;
            dl {
                margin-left: 100px;
                dt {
                    height: 35px;
                    color: #333;
                    font-size: 16px;
                }
                a {
                    font-size: 12px;
                    color: #333;
                    &:hover {
                        color: #004aff;
                    }
                }
            }
        }
    }
}

div[class^=fixedbar] {
    width: 180px;
    height: 420px;
    position: fixed;
    top: 200px;
}

.fixedbar-left {
    left: 50%;
    margin-left: -800px;
    background-color: pink;
}

.fixedbar-right {
    right: 50%;
    margin-right: -800px;
    background-color: purple;
}